package main.java.game.event;


import java.util.List;

import main.java.game.Game;
import main.java.game.combatant.Hero;

public class LuckyStar extends Event {
	public LuckyStar(String name, Boolean subscribed){
		super(name,subscribed);
		
	}
	public void takeEffect(Game game){
		super.takeEffect(game);
		List<Hero> listH =game.getPlayer().getHeroes();
		for(Hero hero: listH){
			hero.setAttack(hero.getAttack()+2);
		}
		System.out.println("All your heroes have 2 additional attack points, until the end of the turn!\n");
	}
	public void update(Game game, Integer round) {
		List<Hero> listH =game.getPlayer().getHeroes();
		for(Hero hero: listH){
			hero.setAttack(hero.getAttack()-2);
		}
		
		
	}

}
